package com.neusoft.entity;

import com.neusoft.annotation.ID;
import com.neusoft.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

@Table("stu.demand")
@Data
@ToString
@Accessors(chain = true)  //链式写法
@NoArgsConstructor
@AllArgsConstructor
public class Demand {
    @ID
    private Integer id;
    private String name;
    private  String phone;
    private  String location;
    private  String type;
    private Integer min;
    private Integer max;

    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getPhone() {
        return phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getLocation() {
        return location;
    }
    public void setLocation(String location) {
        this.location = location;
    }
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public Integer getMin() {
        return min;
    }
    public void setMin(Integer min) {
        this.min = min;
    }
    public Integer getMax() {
        return max;
    }

    public void setMax(Integer max) {
        this.max = max;
    }
    @Override
    public String toString() {
        return "Demand [id=" + id + ", name=" + name + ", phone=" + phone
                + ", location=" + location + ", type=" + type + ", min=" + min
                + ", max=" + max + "]";
    }
    public Demand(){


    }
    public Demand(Integer id, String name, String phone, String location,
                  String type, Integer min, Integer max) {

        this.id = id;
        this.name = name;
        this.phone = phone;
        this.location = location;
        this.type = type;
        this.min = min;
        this.max = max;
    }
}
